import {createStore,applyMiddleware,combineReducers} from "redux"
import thunk from "redux-thunk"
import {composeWithDevTools} from "redux-devtools-extension"
import test from "./modules/test"
import register from "./modules/register"
import login from "./modules/login"
import home from "./modules/home"
import cate from "./modules/cate"
import detail from "./modules/detail"
import shop from "./modules/shop"
import coupon from "./modules/coupon"
import mine from "./modules/mine"

let reducer = combineReducers({
    test,
    register,
    login,
    home,
    cate,
    detail,
    shop,
    coupon,
    mine
})

let store = createStore(reducer,composeWithDevTools(applyMiddleware(thunk)));
export default store;